package com.edu.demo.mapper;

import com.edu.demo.entity.ProResume;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**项目简历投递 Mapper 接口
 * </p>
 *
 * @author jixuewei
 * @since 2023-01-12
 */
@Mapper
public interface ProResumeMapper extends BaseMapper<ProResume> {

    @Select("select count(*) from pro_resume where project_id = #{pro} and status = 3")
    int sumRecruited(@Param("pro") Integer projectId);

}
